local louguan_sword__qinggang_sword_skill = fk.CreateSkill {

  name = "#louguan_sword__qinggang_sword_skill",
  attached_equip = "louguan_sword__qinggang_sword",

  tags = { Skill.Compulsory, },

}



louguan_sword__qinggang_sword_skill:addEffect(fk.TargetSpecified, {
  name = "#louguan_sword__qinggang_sword_skill",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(louguan_sword__qinggang_sword_skill.name) and
        data.card and data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:broadcastPlaySound(Thbattle_path .. "audio/card/male/louguan_sword__qinggang_sword")
    local to = data.to
    local use_event = room.logic:getCurrentEvent():findParent(GameEvent.UseCard, true)
    if use_event == nil then return end
    room:addPlayerMark(to, MarkEnum.MarkArmorNullified)
    use_event:addCleaner(function()
      room:removePlayerMark(to, MarkEnum.MarkArmorNullified)
    end)
  end,
})

return louguan_sword__qinggang_sword_skill